package com.wm.eduService.mapper;

import com.wm.eduService.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wm.eduService.entity.vo.CoursePublishVo;
import com.wm.eduService.entity.vo.CourseWebVo;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author sshdg
 * @since 2020-10-01
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 根据课程id  查询课程信息
     * @param courseId 课程id
     * @return CoursePublishVo
     */
    CoursePublishVo getPublishCourseInfo(String courseId);


    /**
     * 根据课程id，查询课程的基本信息（前台）
     * @param courseId
     * @return
     */
    CourseWebVo getBaseCourseInfo(String courseId);
}
